<!DOCTYPE html>
<html lang='en'>

	<head>
		<title>转你妹</title>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<link rel="icon" href="icon.png">
		<link rel="stylesheet" type="text/css" href="style/style.css">
		<link rel="stylesheet" href="style/fa/css/font-awesome.min.css">

		<style>
			a.doudouLink {
				width: 25%;
				height: 25%;
				position: absolute;
				bottom: 0;
				left: 40%;
				z-index: 999999;
			}
			
			.endBtn {
				background-size: auto 100%;
				width: 28rem;
				height: 16rem;
				position: relative;
				margin: 0 auto;
			}
			
			a.moreGame {
				width: 40%;
				padding-top: 30%;
				position: absolute;
				bottom: 16%;
				right: 0;
			}
			
			a.irestartBtn {
				width: 40%;
				padding-top: 30%;
				position: absolute;
				bottom: 16%;
				left: 0;
			}
			
			#overlayMask {
				width: 100%;
				height: 100%;
				position: fixed;
				z-index: 3;
				background: #fff;
				opacity: 0.6;
			}
			
			.iss {
				color: deepskyblue;
				padding: 20px 0;
				z-index: 999;
			}
			
			.hblg {
				position: fixed;
				bottom: 0;
				left: 0;
				color: gray;
				font-size: 10px;
				text-align: center;
				width: 100%;
			}
			
			.guangg {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 80px;
				background: palevioletred;
				color: white;
				line-height: 80px;
				text-align: center;
			}
		</style>
		<style>
			html {
				-ms-touch-action: none;
				/* Direct all pointer events to JavaScript code. */
			}
		</style>
	</head>

	<body>
		<div id="moregame2" style="position:fixed;z-index:99; bottom:20px; left:0px; font-size:20px; width:100%; text-align:center;">
			<!--<a href="javascript:void(0);" class="irestartBtn " onClick="dp_share();">炫耀一下</a>-->
			<!--<a href="javascript:void(0);" class="irestartBtn">再玩一次</a>-->
			<div class="irestartBtn iss">再玩一次</div>
			<div class="hblg">嗨奇科技技术支持</div>
			<div class="guangg">这里是广告位</div>
		</div>
		<input id="bt-game-id" type="hidden" value="6-zhuannimei">
		<canvas id="canvas"></canvas>
		<div id='devtools' style='z-index: 3; display: none; position: absolute; left: 50%; width: 400px; height: 400px; top: 50%; margin-top: -200px; margin-left: -200px;'>
			<h2 id='clickToExit' style='background-color: #fff; color: #000'>
				Click to exit
			</h2>
			<textarea id='devtoolsText' style='height: 300px; width: 400px;'></textarea>
		</div>
		<div id="overlay" class="faded"></div>
		<div id='startBtn' style='position: absolute; left: 40%; top: 38%; height: 25%; width: 25%; z-index: 99999999; cursor: pointer;'></div>
		<!--<div id="helpScreen" class='unselectable'>
			<h1 class='instructions_body'>
				规则介绍
			</h1>
			<p class='instructions_body' id='inst_main_body'>
				<br>
				点击屏幕左右侧，向左向右旋转六边形。
				<br>
				相同颜色的即可消除掉下来的方块
				<br>
				尽力支撑更多的时间...
				<br>
			</p>
		</div>-->
		<!-- <div id="openSideBar" class = 'helpText'><i class="fa fa-info-circle fa-lg"></i> <i class="fa fa-arrow-left"><b>  帮助</b></i></div> -->
		<!-- <div id = 'pauseBtn'><div id = 'pauseBtnInner'><i class="fa fa-pause fa-2x"></i></div></div>
		<div id = 'restartBtn'><div id = 'restartBtnInner'><i class="fa fa-refresh fa-2x"></i></div></div>
		 -->
		<div id="overlayMask" style="display:none;"></div>

		<!--<div style="display: none;">
			<script type="text/javascript" src="http://tajs.qq.com/stats?sId=36313548" charset="UTF-8"></script>
		</div>-->
	</body>
	<script type='text/javascript' src="js/jquery-2.0.3.min.js"></script>
	<script type='text/javascript' src="js/c200814.js"></script>
	<script src="../../time.js" type="text/javascript" charset="utf-8"></script>
	<script language=javascript>
		var mebtnopenurl = 'http://demo9.52jscn.com/index.html';
		var thegameurl = "http://demo9.52jscn.com/games/znm/";
		var guanzhuurl = "http://mp.weixin.qq.com/s?__biz=MzAxMTAzMzg4Nw==&mid=201177010&idx=1&sn=70245fd06f458dabf02b543beae64527#rd";
		window.shareData = {
			"imgUrl": "",
			"timeLineLink": thegameurl,
			"tTitle": "转你妹",
			"tContent": "轻松休闲的消除类游戏，小伙伴们快来体验一下！"
		};
		
		function goHome() {
			window.location = mebtnopenurl;
		}

		function clickMore() {
			if((window.location + "").indexOf("f=zf", 1) > 0) {
				window.location = mebtnopenurl;
			} else {
				goHome();
			}
		}

		function dp_share() {
			document.getElementById("share").style.display = "";

		}

		function dp_Ranking() {
			window.location = mebtnopenurl;
		}

		function showAd() {}

		function hideAd() {}
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {

			WeixinJSBridge.on('menu:share:appmessage', function(argv) {
				WeixinJSBridge.invoke('sendAppMessage', {
					"img_url": window.shareData.imgUrl,
					"link": window.shareData.timeLineLink,
					"desc": window.shareData.tContent,
					"title": window.shareData.tTitle
				}, onShareComplete);
			});

			WeixinJSBridge.on('menu:share:timeline', function(argv) {
				WeixinJSBridge.invoke('shareTimeline', {
					"img_url": window.shareData.imgUrl,
					"img_width": "640",
					"img_height": "640",
					"link": window.shareData.timeLineLink,
					"desc": window.shareData.tContent,
					"title": window.shareData.tTitle
				}, onShareComplete);
			});
		}, false);

		var myData = {
			gameid: "dsdy"
		};
		var domain = ["oixm.cn", "hiemma.cn", "peagame.net"][parseInt(Math.random() * 3)];
		window.shareData.timeLineLink = thegameurl;

		function dp_submitScore(score) {
			myData.score = parseInt(score);
			myData.scoreName = "获得" + score + "分";
			document.title = window.shareData.tTitle = "我在【转你妹】完成了" + score + "分,转晕了都，有本事来挑战一下，嘻嘻！";

			
			outtime = CurentTime()
				
			function sendHelloToAndroid() {
				// body...
				//console.log("call android")
				if(window.android != null && typeof(window.android) != "undefined") {
					window.android.callAndroid("转你妹", "益智", score+"分", sendtime, outtime);
				} else {
					alert(typeof(window.android));

				}

			}
			sendHelloToAndroid()

		}

		function onShareComplete(res) {
			
			if(localStorage.myuid && myData.score != undefined) {
				setTimeout(function() {
					if(confirm("？")) {
						window.location = mebtnopenurl;
					} else {
						document.location.href = mebtnopenurl;
					}
				}, 500);
			} else {
				document.location.href = guanzhuurl;
			}
		}
		
	</script>
	<!--<div id=share style="display: none">
			<img width="100%" src="../../index/img/banner02.gif"
				style="position: fixed; z-index: 9999; top: 0; left: 0; display: "
				
		</div>-->

</html>